﻿using System.Windows;
using DaphneProfiBase;
using GalaSoft.MvvmLight.Messaging;

namespace DaphneForms
{
    /// <summary>
    /// Description for EngineMatchForm.
    /// </summary>
    public partial class EngineMatchForm : Window
    {
        /// <summary>
        /// Initializes a new instance of the EngineMatchForm class.
        /// </summary>
        public EngineMatchForm()
        {
            InitializeComponent();

            // handle message for closing the form
            Messenger.Default.Register<NotificationMessage>(this, (nm) =>
                {
                    if (nm.Notification == Notify.ExitRunMatchForm)
                    {
                        this.Close();
                    }
                });
        }
    }
}